package com.example;

import android.databinding.DataBindingUtil;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;


public class CustomBindingActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        com.example.ContactItemBinding binding = DataBindingUtil.setContentView(this, R.layout.contact_item);
        User user = new User("jane", "jc");
        user.setContact("I am a contact");
        binding.setUser(user);
    }
}
